#ifndef _CRC_H
#define _CRC_H
#define u8 unsigned char 
#define u16 unsigned short
#define u32 unsigned int

u8 mc_check_sum(u8* buf,u16 len);
u8 mc_check_xor(u8* buf, u16 len);
u8 mc_check_crc8(u8 *buf,u16 len);
u16 mc_check_crc16(u8 *buf,u16 len);
u8 bbc_mc_check(u8* buf,u16 len);
unsigned short crc_16_CCITT_False(unsigned char * pucFrame,int offset ,unsigned short usLen) ;
unsigned short crc16_xmod(unsigned char *buf, int len);
unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len);
#endif
